### Rapport makefile ###

R = exam

all: $R.pdf
	make clean
	pdflatex --shell-escape $R.tex
	pdflatex --shell-escape $R.tex
	pdflatex --shell-escape $R.tex
	make clean

nobib: $R.tex
	make clean
	make all
	make clean

view:	$R.pdf
	make clean
	make all
	make clean
	evince $R.pdf &

open:	$R.pdf
	make clean
	make all
	make clean
	open $R.pdf

okular: $R.pdf
	make clean
	make all
	make clean
	okular $R.pdf &

moc: $R.pdf
	make clean
	pdflatex --shell-escape $R.tex
	make clean


clean:
	rm -f *.aux $R.log $R.nav $R.snm $R.toc $R.blg $R.lot $R.lof $R.ps $R.dvi *~ *.backup *.out *.log *.bbl *.tmp *.tps   */*~ */*.log  */*/*~ *.bak
	## $R is clean! ##
